package com.shaw.workrecord.service;

import com.shaw.workrecord.pojo.game.response.RoomMemberResponse;

import java.util.List;

/**
 * @author jiangjunhui
 * @description
 * @date 2022/9/15 14:25
 */
public interface IRoomMemberService {

    /**
     * 根据房间号查找玩家列表
     *
     * @param roomId 房间号
     * @return 玩家列表
     */
    List<RoomMemberResponse> getMemberList(Long roomId);

    /**
     * 加入房间
     *
     * @param roomId 房间号
     * @return
     */
    Boolean addMember(Long roomId);

    /**
     * 退出房间
     *
     * @param roomId 房间号
     * @return
     */
    Boolean removeMember(Long roomId);
}
